package Dom;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "srudent")
@XmlAccessorType(XmlAccessType.FIELD)
public class Student {
	@XmlAttribute(name="id")
	private int id;
	@XmlElement(name = "name")
	private String name;
	
	@XmlElement(name = "gender")
	private String gender;
	@XmlElement(name = "age")
	private int age;
	public Student(String name,String gender,int age){
		this.name=name;
		this.gender =gender;
		this.age=age;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public String toString(){
		return "id:"+id+"  name:"+name+"  gender:"+gender+"  age:"+age;
	}
	public Student(){
		
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}

}
